package com.sunlands.zlcx.usercenter.domain;

import lombok.Data;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import java.io.Serializable;

/**
 * 接入端定义
 * 同时兼任认证服务器的客户端, 和聊天服务器的客户端
 *
 * @author anjl
 */
@Entity(name = "client")
@Data
public class ClientDO implements Serializable{
    private static final long serialVersionUID = 331920621724187428L;
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    String clientId;

    String clientSecret;

    String resourceIds;

    String grantTypes;

    String scopes;

    String roles;

    Integer tokenExpiredInSeconds;

    /**
     * 这个属性是自定义的, oauth2.0无此属性
     */
    String callbackUrl;
}
